﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace PeppeDotNet.SP2010.TakeAPicture
{
    public class TakeAPictureField : SPFieldText
    {
        public TakeAPictureField(SPFieldCollection fields, string fieldName)
        : base(fields, fieldName) { }

        public TakeAPictureField(SPFieldCollection fields, string typeName, string displayName)
        : base(fields, typeName, displayName) { }
    
        public override BaseFieldControl FieldRenderingControl
        {
            get
            {
                BaseFieldControl guidFieldControl = new TakeAPictureFieldControl();
                guidFieldControl.FieldName = InternalName;
                return guidFieldControl;
            }
        } 
    }
}
